package com.netease.framework;

import android.app.Activity;
import java.util.Stack;

public class j
{
  private static j b;
  public Stack a = new Stack();

  public static j a()
  {
    if (b == null)
      b = new j();
    return b;
  }

  public static void d(Activity paramActivity)
  {
    a().b(paramActivity);
  }

  public static void e(Activity paramActivity)
  {
  }

  public static void f(Activity paramActivity)
  {
  }

  public static void g(Activity paramActivity)
  {
  }

  public static void h(Activity paramActivity)
  {
  }

  public static void i(Activity paramActivity)
  {
    a().a(paramActivity);
  }

  public void a(Activity paramActivity)
  {
    if (paramActivity != null)
      this.a.remove(paramActivity);
  }

  public void b()
  {
    if ((Activity)this.a.lastElement() != null);
  }

  public void b(Activity paramActivity)
  {
    if (paramActivity == null);
    while (true)
    {
      return;
      this.a.add(paramActivity);
    }
  }

  public Activity c()
  {
    return (Activity)this.a.lastElement();
  }

  public void c(Activity paramActivity)
  {
    while (this.a.size() > 0)
    {
      Activity localActivity = (Activity)this.a.pop();
      if ((localActivity == null) || (localActivity == paramActivity))
        continue;
      localActivity.finish();
    }
    b(paramActivity);
  }

  public void d()
  {
    while (this.a.size() > 0)
    {
      Activity localActivity = (Activity)this.a.pop();
      if (localActivity == null)
        continue;
      localActivity.finish();
    }
  }

  public int e()
  {
    return this.a.size();
  }

  public ActivityEx f()
  {
    if (this.a.size() > 1);
    for (ActivityEx localActivityEx = (ActivityEx)(Activity)this.a.elementAt(-2 + this.a.size()); ; localActivityEx = null)
      return localActivityEx;
  }

  public void g()
  {
    for (int i = 0; i < this.a.size(); i++)
    {
      Activity localActivity = (Activity)this.a.get(i);
      if (!(localActivity instanceof c))
        continue;
      ((c)localActivity).f_();
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.framework.j
 * JD-Core Version:    0.6.0
 */